﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="InserirOportunidade.aspx.cs" Inherits="CursoUNICEUB.InserirOportunidade" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .style1
        {
            width: 101px;
        }
        .style4
        {
            width: 146px;
            height: 31px;
        }
        .style5
        {
            height: 31px;
        }
        .style6
        {
            width: 146px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <h1>
        Cadastre uma oportunidade</h1>
    <table style="width: 95%">
        <tr>
            <td class="style6">
                <asp:Label ID="Label1" runat="server">Título : </asp:Label>
            </td>
            <td>
                <asp:TextBox runat="server" ID="txtTitulo" MaxLength="50" Width="226px" />
                <asp:RequiredFieldValidator ID="rfvTitulo" runat="server" ErrorMessage="Título."
                    ControlToValidate="txtTitulo" Text="*" ValidationGroup="incluir"/>
            </td>
        </tr>
        <tr>
            <td valign="top" class="style6">
                <asp:Label ID="Label2" runat="server">Descrição : </asp:Label>
            </td>
            <td>
                <asp:TextBox runat="server" ID="txtDescricao" Width="95%" 
                    Height="110px" TextMode="MultiLine" />
                <asp:RequiredFieldValidator ID="rfvDescricao" runat="server" ErrorMessage="Descrição."
                    ControlToValidate="txtDescricao" Text="*" ValidationGroup="incluir"/>
            </td>
        </tr>
        <tr>
            <td class="style6">
                <asp:Label ID="Label3" runat="server">Cargo : </asp:Label>
            </td>
            <td>
               <asp:DropDownList ID="ddlcargo" runat="server" Height="22px" Width="296px" DataTextField="Descricao" 
                    DataValueField="Codigo">
                </asp:DropDownList>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Cargo." InitialValue="0"
                    ControlToValidate="ddlcargo" Text="*" ValidationGroup="incluir"/>
                &nbsp;
                
                <asp:Button ID="btnNovoCargo" runat="server" onclick="btnNovoCargo_Click" 
                    Text="Novo!" />
                
            </td>
        </tr>
        <tr>
        <td class="style4">
            <asp:Label ID="Label10" runat="server" Text="Forma de Contratação:"></asp:Label>
        </td>
        <td class="style5">
            <asp:DropDownList ID="ddlFormaContratacao" runat="server" Height="22px" 
                Width="126px">
                  <asp:ListItem Text="CLT" Value="CLT"/>
                  <asp:ListItem Text="PJ" Value="PJ"/>
                  <asp:ListItem Text="Flex" Value="Flex"/>
            </asp:DropDownList>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                ErrorMessage="Forma de Contratação." InitialValue="0"
                    ControlToValidate="ddlFormaContratacao" Text="*" 
                ValidationGroup="incluir"/>
        </td>
        </tr>
        <tr>
            <td class="style6">
                <asp:Label ID="Label5" runat="server" Text="Salário inicial:"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtSalarioInicial" runat="server"></asp:TextBox>
                <asp:MaskedEditExtender ID="txtSalarioInicial_MaskedEditExtender" 
                    runat="server" CultureAMPMPlaceholder="" CultureCurrencySymbolPlaceholder="" 
                    CultureDateFormat="" CultureDatePlaceholder="" CultureDecimalPlaceholder="" 
                    CultureThousandsPlaceholder="" CultureTimePlaceholder="" Enabled="True" 
                    InputDirection="RightToLeft" Mask="999,999.99" MaskType="Number" 
                    TargetControlID="txtSalarioInicial">
                </asp:MaskedEditExtender>
            </td>
        </tr>
        <tr>
            <td class="style6">
                <asp:Label ID="Label6" runat="server" Text="Salário final:"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtSalarioFinal" runat="server"></asp:TextBox>
                <asp:MaskedEditExtender ID="txtSalarioFinal_MaskedEditExtender" runat="server" 
                    CultureAMPMPlaceholder="" CultureCurrencySymbolPlaceholder="" 
                    CultureDateFormat="" CultureDatePlaceholder="" CultureDecimalPlaceholder="" 
                    CultureThousandsPlaceholder="" CultureTimePlaceholder="" Enabled="True" 
                    InputDirection="RightToLeft" Mask="999,999.99" MaskType="Number" 
                    TargetControlID="txtSalarioFinal">
                </asp:MaskedEditExtender>
            </td>
        </tr>
        <tr>
            <td valign="top" class="style6">
                <asp:Label ID="Label4" runat="server">Empresa : </asp:Label>
            </td>
            <td valign="top">
                <asp:DropDownList ID="ddlEmpresa" runat="server" DataTextField="Nome" 
                    Height="22px" Width="296px" DataSourceID="LinqDataSourceEmpresa" 
                    DataValueField="Codigo" AppendDataBoundItems="true">
                    <asp:ListItem Text="Selecione" Value="0"/>
                </asp:DropDownList>
                <asp:LinqDataSource ID="LinqDataSourceEmpresa" runat="server" 
                    ContextTypeName="FastDATA.DCCursoDataContext" EntityTypeName="" OrderBy="Nome" 
                    TableName="DEEmpresas">
                </asp:LinqDataSource>
                <asp:RequiredFieldValidator ID="rfvEmpresa" runat="server" ErrorMessage="Nome da Empresa."
                    ControlToValidate="ddlEmpresa" Text="*" ValidationGroup="incluir" 
                    InitialValue="0"/>
            &nbsp;<asp:Button ID="btnNovoEmpresa" runat="server" onclick="btnNovoEmpresa_Click" 
                    Text="Novo!" />
            </td>
        </tr>
        <tr>
            <td valign="top" class="style6">
                <asp:Label ID="Label7" runat="server" Text="Telefone:"></asp:Label>
            </td>
            <td valign="top">
                <asp:TextBox ID="txtTelefone" runat="server" MaxLength="8"></asp:TextBox>
                <asp:MaskedEditExtender ID="txtTelefone_MaskedEditExtender" runat="server" 
                    CultureAMPMPlaceholder="" CultureCurrencySymbolPlaceholder="" 
                    CultureDateFormat="" CultureDatePlaceholder="" CultureDecimalPlaceholder="" 
                    CultureThousandsPlaceholder="" CultureTimePlaceholder="" Enabled="True" 
                    Mask="9999-9999" MaskType="Number" TargetControlID="txtTelefone">
                </asp:MaskedEditExtender>
                <asp:RequiredFieldValidator ID="rfvTelefone" runat="server" 
                    ControlToValidate="txtTelefone" ErrorMessage="Telefone." 
                    ValidationGroup="incluir">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td valign="top" class="style6">
                <asp:Label ID="Label8" runat="server" Text="E-mail:"></asp:Label>
            </td>
            <td valign="top">
                <asp:TextBox ID="txtEmail" runat="server" MaxLength="50" Width="257px"></asp:TextBox>
                <asp:RegularExpressionValidator ID="revEmail" runat="server" 
                    ControlToValidate="txtEmail" ErrorMessage="E-mail." 
                    ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" 
                    ValidationGroup="incluir">*</asp:RegularExpressionValidator>
                <asp:RequiredFieldValidator ID="rfvEmail" runat="server" 
                    ControlToValidate="txtEmail" ErrorMessage="Email." 
                    ValidationGroup="incluir">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td valign="top" class="style6">
                <asp:Label ID="Label11" runat="server" Text="Confidencial:"></asp:Label>
            </td>
            <td valign="top">
                <asp:TextBox ID="txtConfidencial" runat="server" Height="110px" MaxLength="300" 
                    TextMode="MultiLine" Width="95%"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td valign="top" class="style6">
                <asp:Label ID="Label9" runat="server" Text="Requisitos:"></asp:Label>
            </td>
            <td valign="top">
                <asp:TextBox ID="txtRequisitos" runat="server" Height="110px" TextMode="MultiLine" Width="95%"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td colspan="2" align="right">
                <asp:Button ID="btnInserirOportunidade" runat="server" Text="Cadastrar" 
                    ValidationGroup="incluir" onclick="btnInserirOportunidade_Click" />
                <asp:Button ID="btnCancelar" runat="server" Text="Cancelar" PostBackUrl="~/Default.aspx" />
                <asp:ValidationSummary ID="vSum" runat="server" HeaderText="Favor verificar os seguintes campos :"
                    ShowMessageBox="True" ShowSummary="False" ValidationGroup="incluir" />
            </td>
        </tr>
    </table>
</asp:Content>
